Prev | Next

Wind and Gravity - Use the Force

<< | >>

Making A Flat Card Turn Into A Flag

Overview

Here's an interesting effect. You can start with the image looking like a flat card, and then turn it into a flag as the user watches! How can you create such magic? It is all a matter of creatively using the Pre-Roll feature.

A 3D Flag simulation always starts with the flag in a neutral, flat state. That is, before wind , gravity, or anything else can change the look of the flag, it begins upright and flat, as shown here.

The reason your never see this state is because the Pre-Roll value is set to 4 seconds. This means that the flag simulation runs for 4 seconds before you ever see the first frame.

By setting the Pre-Roll value to 0 the flag will look like a flat card.

Creating The Card

Let's see what happens to our flag if there is no pre-roll. That is, let's see how wind and gravity affect the flag from its default position.

  1. Open the "Quick Start.aep" project.
  2. In the Effect Controls window, locate the Pre-Roll parameter and set it to 0.



    Notice that the flag is now a flat rectangle, with no forces yet applied to it.
  3. View the animated flag within the 3D Flag Options window by clicking on the 3D Flag logo in the Effect Controls window.



    Notice how the flag begins to drop due to gravity, but then the wind forces it to the right. After a few seconds, the flag settles into a nice undulation.
  4. While still in the 3D Flag Options window, click the Restart Simulation button.



    This will restart the flag animation from the first frame after the pre-rolling is done. That is, if Pre-Roll were set to 4 seconds, the first frame of the animation playback would be just after 4 pre-rolled seconds.

    In our current example, Pre-Roll is 0 seconds, so restarting the animation puts the flag back in its default position. You can watch the wind and gravity make the flag undulate again.

Adding More Magic

When you preview the animation in real-time you can see that the card turns into a flag pretty fast. To make the transition more graceful you should lower the Gravity. Like we learned in the previous section lowering the gravity keeps the flag from dropping so fast. By setting Gravity to a low value such as 1 or even .2, the effects of gravity will be minimized and the transition from card to flag will be more magical.

By lowering the wind speed the transition will become especially slow. If you really want to make it look cool, animate the wind speed from 0 up to 11 over a 10 second period. This will cause the wind take effect very slowly and then ramp up to a full billow and gale.

Sometimes, when animating a "drop effect" such as this, you need the fabric of the flag to be more loose and rubbery. This is especially the case when you are suspending the flag from above like you would for a banner.

The next chapter, Changing Flag Attributes, will demonstrate how to use the 3D Flag Options window to customize the cloth of your flag. The next chapter will show you that not all flags have to look the same.